package com.buaa.aimall.userModule.Entity;

import com.baomidou.mybatisplus.annotation.*;
import com.buaa.aimall.userModule.Enum.PayOrderStatusEnum;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;

@TableName(value = "recharge_pay_order")
@Data
@Builder
public class RechargePayOrderEntity {
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @TableField("fk_user")
    private String user;

    @TableField("mch_order_no")
    private String mchOrderNo;

    @TableField("amount")
    private int amount;

    @TableField("status")
    private PayOrderStatusEnum status;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}
